#/bin/bash
docker stop nginx_warehouse
docker rm nginx_warehouse
docker run -d -p 80:80 --name nginx_warehouse \
            -v /root/warehouse/warehouse_vue_dist/dist:/usr/share/nginx/html \
            -v /root/warehouse/warehouse_vue_dist/log:/var/log/nginx \
            --privileged=true \
            nginx:latest

sleep 1

docker logs nginx_warehouse